import axios from '../axios'
import http from '@/http/requst'
const getOrder = (data:any)=>{ http.get('https://weixin.electrifiedpanda.com:8030/trans/tbChargeOrder/page',data)}
const getVehicleInfoByOpneid = (data:any)=>{ http.post('https://weixin.electrifiedpanda.com:8030/trans/userinfo/getVehicleInfoByOpneid',data)}
const eleApi = {
    getVehicleInfoByOpneid (data: {
        openid: string}) {
        return axios.post('https://weixin.electrifiedpanda.com:8030/trans/userinfo/getVehicleInfoByOpneid/', data)
    },
    postUpdateOrderInfo (data: {
        orderNo: string}) {
        return axios.post('https://weixin.electrifiedpanda.com:8030/trans/tbChargeOrder/updateOrderInfo/', data)
    },
    startSys (data: {
        transactionNo: string,
        accountBalance: string,
        chargeNo: boolean,
        equipmentNo: string,
        logicalCardNo: string,
        phsicalCardNo: string}) {
        return axios.post('http://47.108.61.191:8050/upcharge/upCharge/startCharging', data)
    },
    stopSys (data: {
        equipmentNo: string,
        portNo: string}) {
        return axios.post('http://47.108.61.191:8050/upcharge/upCharge/stopCharging', data)
    },
    post_sj_orderList (data:{}) {
        return axios.post('https://weixin.electrifiedpanda.com:8030/trans/tbChargeOrder/noChargeOrderList',data)
    },
    update_Order_state (data:{
        id:string
    }) { //更新订单状态
        return axios.post('https://weixin.electrifiedpanda.com:8030/trans/tbChargeOrder/updateOrder',data)
    },
    getOrderList (data: {
        asc: string,
        current: string,
        pageSize: string,
        searchCount: string,
        column: string}) {
        return axios.post('https://weixin.electrifiedpanda.com:8030/trans/tbChargeOrder/page', data)
    },

}
export default eleApi
